/**
 * My simple header template from child directory
 * Task.java - ${projectName} - ${organizationName} - ${inceptionYear}
 */
/**
 * Created with IntelliJ IDEA.
 * User: Gauss
 * Date: 17.12.13
 * Time: 17:25
 * To change this template use File | Settings | File Templates.
 */
public class Task {
    public int make(int index) {
        int j=0, i=1;
        while(true) {
            if (index==0) return 1;
            if (index<0) return 0;
            i++;
            index-=i;
            //j+=i;
        }
    }
}
